<!--# layout("/common/layout.html",{"jsBase":"/js/cms/coreNotice/"}){ -->

<form class="layui-form layui-form-pane" id="addForm">
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">类型</label>
                <div class="layui-input-inline">
                    <select type="text" name="type" class="layui-input" >
                        <option value="政府行政公告">政府行政公告</option>
                        <option value="行业智讯">行业智讯</option>
                    </select>
                </div>
            </div>
            <div class="layui-inline">
            <label class="layui-form-label">标题</label>
				<div class="layui-input-inline">
					<input type="text" name="title" class="layui-input" lay-verify="required">
				</div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="">
                <label class="layui-form-label">内容</label>
                <div class="">
                    <textarea type="text" name="content" id="content" class="layui-input" lay-verify="required"></textarea>
                </div>
            </div>
        </div>
    </div>
    <layui:submitButtons id="addButton" />
</form>
<!--#} -->
<script>
layui.use(['add'], function(){
    var coreNoticeAdd = layui.add
    coreNoticeAdd.init();
});
var layedit,index_edit;
layui.use('layedit', function(){
    layedit = layui.layedit
        ,$ = layui.jquery;
    layedit.set({
        uploadImage: {
            url: '/core/file/uploadAttachment.json' //接口url
        }
    });
    //构建一个默认的编辑器
    index_edit = layedit.build('content');
});
</script>
